<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('index')}">职位管理</a></li>
			<li><a href="{:U('add')}">添加</a></li>
		</ul>
		<form class="well form-search" method="post" action="{:U('index')}">
			名称
			<input type="text" name="keyword[name]" style="width: 200px;" value="{$Think.get.keyword}" placeholder="">
			<button class="btn btn-primary">搜索</button>
			<a href='{:U('')}' class="btn btn-primary" >清空</a>
		</form>
		<form class="js-ajax-form" method="post">
			<div class="table-actions">
				<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('delete')}" data-subcheck="true" data-msg="删除">删除</button>
			</div>
			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
						<th width="16"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
						<th width="100">ID</th>
						<th width="100">名称</th>
						<th width="100">识别码</th>
						<th width="100">状态</th>
						<th width="120">添加时间</th>
						<th width="120">操作</th>
					</tr>
				</thead>
				<volist name="list" id="vo">
				<tr>
					<td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.pro_id}"></td>
					<td>{$vo.pro_id}</td>
					<td>{$vo.pro_name}</td>
					<td>{$vo.code}</td>
					<td>{$status[$vo[status]]}</td>
					<td>{$vo.created_time}</td>
					<td>
						<a href="{:U('edit',array('id'=>$vo['pro_id']))}">编辑</a>|
						<a href="{:U('setStatus',array('id'=>$vo['pro_id'],'status'=>'0'))}" class="js-ajax-delete">屏蔽</a>
					</td>
				</tr>
				</volist>
			</table>
			<div class="table-actions">
				<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('delete')}" data-subcheck="true" data-msg="你确定删除吗？">{:L('DELETE')}</button>
			</div>
			<div class="pagination">{$page}</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
	<script>
		setCookie('refersh_time', 0);
		function refersh_window() {
			var refersh_time = getCookie('refersh_time');
			if (refersh_time == 1) {
				window.location.reload();
			}
		}
		setInterval(function() {
			refersh_window()
		}, 2000);
	</script>
</body>
</html>